package com.tomecode.tools.maven.settings.model;

/**
 * Repository contains the information needed for establishing connections with
 * remote repoistory
 * 
 * @author Tomas Frastia
 * @see http://www.tomecode.com or
 *      http://code.google.com/p/maven-settings-editor/
 * 
 */
public final class PluginRepository extends AbstractRepository {

	public PluginRepository() {
		super();
	}

	/**
	 * Copy exists {@link PluginRepository} to new {@link PluginRepository}
	 * 
	 * @param pluginRepository
	 */
	public PluginRepository(PluginRepository pluginRepository) {
		id = pluginRepository.getId();
		layout = pluginRepository.getLayout();
		name = pluginRepository.getName();
		url = pluginRepository.getUrl();
		releases = new Release(pluginRepository.getReleases());
		snapshots = new Snapshot(pluginRepository.getSnapshots());
	}
}
